package com.rds.system.domain;

import java.util.Date;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;

/**
 * menu关系对象 rda_subcommand_rel
 *
 * @author rds
 * @date 2021-05-26
 */
public class RdaSubcommandRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /**  */
    @Excel(name = "")
    private Integer fromid;

    /** $column.columnComment */
    @Excel(name = "")
    private Integer fromtypeid;

    /** $column.columnComment */
    @Excel(name = "")
    private Integer toid;

    /** $column.columnComment */
    @Excel(name = "")
    private Integer totypeid;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** $column.columnComment */
    @Excel(name = "")
    private Integer lineno;

    /** $column.columnComment */
    @Excel(name = "")
    private Integer columnno;

    /** $column.columnComment */
    @Excel(name = "")
    private String status;


    private Set<Integer> commandIds;

    public Set<Integer> getCommandIds() {
        return commandIds;
    }

    public void setCommandIds(Set<Integer> commandIds) {
        this.commandIds = commandIds;
    }



    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /** $column.columnComment */
    @Excel(name = "描述")
    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**  */
    @Excel(name = "")
    private String name;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFromid(Integer fromid)
    {
        this.fromid = fromid;
    }

    public Integer getFromid()
    {
        return fromid;
    }
    public void setFromtypeid(Integer fromtypeid)
    {
        this.fromtypeid = fromtypeid;
    }

    public Integer getFromtypeid()
    {
        return fromtypeid;
    }
    public void setToid(Integer toid)
    {
        this.toid = toid;
    }

    public Integer getToid()
    {
        return toid;
    }
    public void setTotypeid(Integer totypeid)
    {
        this.totypeid = totypeid;
    }

    public Integer getTotypeid()
    {
        return totypeid;
    }
    public void setModifyTime(Date modifyTime)
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime()
    {
        return modifyTime;
    }
    public void setLineno(Integer lineno)
    {
        this.lineno = lineno;
    }

    public Integer getLineno()
    {
        return lineno;
    }
    public void setColumnno(Integer columnno)
    {
        this.columnno = columnno;
    }

    public Integer getColumnno()
    {
        return columnno;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromid", getFromid())
            .append("fromtypeid", getFromtypeid())
            .append("toid", getToid())
            .append("totypeid", getTotypeid())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("lineno", getLineno())
            .append("columnno", getColumnno())
            .append("status", getStatus())
            .toString();
    }
}
